@import '@/assets/css/global-style.scss';
.box_home {
  @include set-location(position, horization);
  width: 90%;
  padding: 1.25rem 0;
  height: 100%;
}

.triangle {
  position: absolute;
  right: -0.3125rem;
  height: 0.625rem;
  width: 0.625rem;
  transform: translateX(50%) rotate(45deg);
  border-top: 0.0625rem solid var(--line-blue);
  border-right: 0.0625rem solid var(--line-blue);
  background-color: var(--selected-blue);
}

.left {
  position: relative;
  width: 12.5rem;
  color: #fff;
  height: 40%;
  overflow-y: auto;
  border-radius: 1.25rem;

  .left_list {
    border: 0.0625rem solid var(--line-blue);
    box-shadow: 0.5625rem 0px 0.375rem -0.5rem rgba(0, 0, 0, 0.3);
    width: 96%;
    border-radius: 0.625rem;
    background: linear-gradient(to right, #56ccf2, #599bf3, #1d7af3);
  }

  .header {
    @include set-location(display, 'center');
    height: 3.125rem;
    width: 97%;
  }

  .source_item {
    @include set-location(display, 'center');
    cursor: pointer;
    height: 3.125rem;
    width: 97%;
    position: relative;
  }

  .mark {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    transition: all 1s linear;
  }

  .source_item:hover .mark {
    visibility: visible;
    left: 0;
  }

  .source_select {
    background-color: var(--selected-blue);
  }
}

.middle {
  flex: 1;
  margin-right: 0.625rem;

  .box_content {
    height: 98%;
    background-color: var(--bright-back);
    border-radius: 0.625rem;
    padding: 0.625rem;
    overflow-y: auto;
  }
}

.right {
  width: 15.625rem;
  height: 98%;
  // background: var(--bright-back);

  .box_btn_exam {
    @include set-location(display, 'vertication');
    justify-content: center;
    background-color: var(--bright-back);
    height: 12.5rem;
    width: 100%;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 0 0.625rem;
  }

  .btn_exam {
    background: linear-gradient(to right, #ffd3a5, #ffaaa6);
    margin-bottom: 0.625rem;
  }

  .btn_simulation {
    background: linear-gradient(to right, #ffd700, #ff6347);
  }

  .btn {
    position: relative;
    @include set-location(display, 'center');
    height: 3.125rem;
    width: 100%;
    border-radius: 0.3125rem;
    cursor: pointer;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  .mark {
    visibility: hidden;
    position: absolute;
    left: -100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.35);
    height: 100%;
    width: 100%;
    z-index: 10;
    transition: all 1s linear;
  }

  .btn:hover {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 调整这里的值以改变模糊程度 */
  }

  .btn:hover .mark {
    visibility: visible;
    left: 0;
  }

  .announcement {
    flex: 1;
    background-color: var(--bright-back);
    border-radius: 0.625rem;

    .header {
      @include set-location(display, 'center');
      height: 3.125rem;
    }
  }
}

/*动画*/

/* 针对 WebKit 内核浏览器 */
div::-webkit-scrollbar {
  width: 0.3125rem; /* 设置滚动条宽度 */
}

div::-webkit-scrollbar-thumb {
  background-color: transparent; /* 隐藏滚动条 thumb（滚动条上的滑块） */
}

.left::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

div::-webkit-scrollbar-track {
  background-color: transparent; /* 隐藏滚动条 track（滚动条背景） */
}

.hovered::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}
